var xmlhttp;
function showpvpladder5(task,ele)
  {
  xmlhttp=getXMLObject();
  if (xmlhttp==null)
    {
    alert ("Your browser does not support XML HTTP Request");
    return;
    }	
  var url="/RSS/getrss1.php";
  url=url+"?task="+task;
  url=url+"&sid="+Math.random();
  xmlhttp.onreadystatechange=function(){
	if(xmlhttp.readyState==4){
		document.getElementById(ele).innerHTML=xmlhttp.responseText;
	}
	else { document.getElementById(ele).innerHTML = "<center>Content not available at this moment.</center>"; }
  }
  xmlhttp.open("GET",url,true);
  xmlhttp.send(null);
  }
function showpvpladderbyjob(task,ele)
  {
  xmlhttp2=getXMLObject();
  if (xmlhttp2==null)
    {
    alert ("Your browser does not support XML HTTP Request");
    return;
    }
  var url="RSS/getrss2.php";
  url=url+"?task="+task;
  url=url+"&sid="+Math.random();
  xmlhttp2.onreadystatechange=function(){
	   if (xmlhttp2.readyState==4)
    {
    document.getElementById(ele).innerHTML=xmlhttp2.responseText;
    }
  }
  xmlhttp2.open("GET",url,true);
  xmlhttp2.send(null);
  }
  


function getXMLObject()  //XML OBJECT
{
   var xmlHttp = false;
   try {
     xmlHttp = new ActiveXObject("Msxml2.XMLHTTP")  // For Old Microsoft Browsers
   }
   catch (e) {
     try {
       xmlHttp = new ActiveXObject("Microsoft.XMLHTTP")  // For Microsoft IE 6.0+
     }
     catch (e2) {
       xmlHttp = false   // No Browser accepts the XMLHTTP Object then false
     }
   }
   if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
     xmlHttp = new XMLHttpRequest();        //For Mozilla, Opera Browsers
   }
   return xmlHttp;  // Mandatory Statement returning the ajax object created
}
